Hi i am making a script to create structured project according to a configure formal module. For each module i create i need to set the permissions, but sometimes this instruction fails when i set the permission for everyone. |
Re: set permission
When setting the default access for everyone else, the third parameter to the set function must be null, not an empty string. ret = set(m_tmp, p_r, null) Tony Goodman, www.smartdxl.com
|
Re: set permission Tony_Goodman - Wed Feb 27 09:43:59 EST 2013
When setting the default access for everyone else, the third parameter to the set function must be null, not an empty string. ret = set(m_tmp, p_r, null) Tony Goodman, www.smartdxl.com
|
Re: set permission Tony_Goodman - Wed Feb 27 09:43:59 EST 2013
When setting the default access for everyone else, the third parameter to the set function must be null, not an empty string. ret = set(m_tmp, p_r, null) Tony Goodman, www.smartdxl.com
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: set permission Mathias Mamsch - Wed Feb 27 11:54:31 EST 2013 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS Where my instructions wrong? |
Re: set permission |
Re: set permission SystemAdmin - Wed Feb 27 12:01:28 EST 2013 Being able to "manage the database" does not mean that you will have Admin access to all modules or objects, it will only give you access to the database property sheet. Only the Divine "Administrator" Himself has access to everything. So, you might want to create a group "Admin", include yourself in this group and ensure that every project, folder, module, object etc. will give "A" rights to this group. |
Re: set permission SystemAdmin - Wed Feb 27 16:04:33 EST 2013 |
Re: set permission Mmmmmm. Just in case run this:
const string cl_sPermisNone = "None" // none access looks like this
Buffer gl_psnConversion_Results = create(8) // Local buffer to the following functions.
//***********************
string fStringOfPsn(Permission psn)
{ // Convert the Permission to displayable string format,
// e.g. 'RMCDA' or 'RM'
if (null psn) return(cl_sPermisNone)
gl_psnConversion_Results = ""
if (!null (psn & read)) gl_psnConversion_Results += "R"
if (!null (psn & modify)) gl_psnConversion_Results += "M"
if (!null (psn & create)) gl_psnConversion_Results += "C"
if (!null (psn & delete)) gl_psnConversion_Results += "D"
if (!null (psn & control)) gl_psnConversion_Results += "A"
return(stringOf(gl_psnConversion_Results))
} // end fStringOfPsn(Permis)
print fStringOfPsn(p_rmcda)
|
Re: set permission llandale - Wed Feb 27 15:22:11 EST 2013 thanks a lot |